package generator.mapper;

import generator.domain.AppInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 李展鹏
* @description 针对表【app_info】的数据库操作Mapper
* @createDate 2024-05-17 10:27:58
* @Entity generator.domain.AppInfo
*/
public interface AppInfoMapper extends BaseMapper<AppInfo> {
    /**
     * 分页
     * @param softwareName
     * @param status
     * @param categoryLevel1
     * @param categoryLevel2
     * @param categoryLevel3
     * @param flatformId
     * @param devId
     * @param from
     * @param pageSize
     * @return
     */
    public List<AppInfo> getAppInfoList(
            @Param("softwareName") String softwareName, @Param("status") Integer status,
            @Param("categoryLevel1") Integer categoryLevel1, @Param("categoryLevel2") Integer categoryLevel2,
            @Param("categoryLevel3") Integer categoryLevel3, @Param("flatformId") Integer flatformId,
            @Param("devId") Integer devId, @Param("from") Integer from, @Param("pageSize") Integer pageSize);

    /**
     * 总记录数
     * @param softwareName
     * @param status
     * @param categoryLevel1
     * @param categoryLevel2
     * @param categoryLevel3
     * @param flatformId
     * @param devId
     * @return
     */
    public int getAppInfoCount(
            @Param("softwareName") String softwareName,@Param("status") Integer status,
            @Param("categoryLevel1") Integer categoryLevel1,@Param("categoryLevel2") Integer categoryLevel2,
            @Param("categoryLevel3") Integer categoryLevel3,@Param("flatformId") Integer flatformId,
            @Param("devId") Integer devId);

    public AppInfo getByIdAppInfo(@Param("id") Integer id);
}




